package com.bootdo.staff.service;

import com.bootdo.common.utils.AppR;

import com.bootdo.staff.domain.StaffUserDO;
import com.bootdo.system.domain.RoleDO;

import java.util.List;
import java.util.Map;

/**
 * 员工表
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-04-23 13:59:00
 */
public interface StaffUserService {
	
	StaffUserDO get(Long staffId);
	
	List<StaffUserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StaffUserDO staffUser);
	
	int update(StaffUserDO staffUser);
	
	int remove(Long staffId);
	
	int batchRemove(Long[] staffIds);
	public AppR login(String staffName , String password);

	List<StaffUserDO> selectAll();

	StaffUserDO selectOne();
	
	/**
	 * 根据状态查询
	 * @param status
	 * @return
	 */
	List<StaffUserDO> listByStatus(String status);

	/**
	 * 获取所有状态
	 * @return
	 */
	List<StaffUserDO> listStatus();
	/**
	 * 获取各项角色人员id和名称
	 * @param smenuId
	 * @return
	 */
	List<StaffUserDO> listWorker(Long smenuId); 

}
